import request from "@/utils/request";

//封装登录接口
export function login(data) {
  //返回一个Promise对象
  return request({
    url: "/sys/login",
    method: "post",
    data,
  });
}
//封装获取用户资料接口
export function getUserInfo() {
  return request({
    url: "/sys/profile",
    method: "post",
  });
}

//获取用户基本信息 里面有头像数据的
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`,
  });
}
